package cn.cvs.dao;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {

    SysUser findByAccount(String account);
    List<SysUser> userList(@Param("pageIndex")Integer pageIndex,
                           @Param("pageSize")Integer pageSize,
                           @Param("realName")String realName,
                           @Param("roleId")Integer roleId);


    int add(SysUser sysUser);

    int count(@Param("realName") String realName);

    int delete(@Param("id") Integer id);

    SysUser getUserById(String id);

    int update(SysUser sysUser);
}
